package com.freemyleft.left.left_app;

import com.alibaba.fastjson.JSON;

import java.util.HashMap;
import java.util.Map;

public class test {
//    {nianji}
public static void main(String[] args) {
    Map<String,Object > jsonMap=new HashMap<>();
    jsonMap.put("id",1);
    Map value=new HashMap<>();
    value.put("id",3);
    value.put("name","英语");
    jsonMap.put("name",1);
    jsonMap.put("value",value);

    System.out.print(JSON.toJSONString(jsonMap));
}

}
